class markdown:
    def __init__(self, headArr: list):
        temp = ''
        for head in headArr:
            temp += '|' + str(head)
        temp += "|\n"
        self.str = temp
        temp = ''
        for head in headArr:
            temp += '|:--:'
        temp += "|\n"
        self.str += temp

    def add(self, bodyArr: list):
        temp = ''
        for body in bodyArr:
            temp += '|' + str(body)
        temp += "|\n"
        self.str += temp
    
    def get(self):
        return self.str
